<%@ page contentType="text/html;charset=UTF-8" language="java" pageEncoding="UTF-8" %>
<html>
<head>
    <meta http-equiv="Content-type" content="text/html;charset=UTF-8">
    <title>用户信息添加</title>
    <style rel="stylesheet">
        #maindiv{
            margin-top: 10px;
            width: 90%;
        }
    </style>
    <!--引入bootstrap的css文件-->
    <!--<link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">-->
    <link href="static/bootstrap-3.3.7-dist/css/bootstrap.min.css" rel="stylesheet">
    <!--引入jquery，注意：jquery要在js文件之前引入，因为bootstrap使用了jquery框架-->
    <script type="text/javascript" src="static/jQuery-1.12.4/jquery-1.12.4.js"></script>
    <!--引入bootstrap的js文件-->
    <!--<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>-->
    <script src="static/bootstrap-3.3.7-dist/js/bootstrap.min.js"></script>
</head>
<body>
    <div id="maindiv">
        <form class="form-horizontal" action="userManager/add" method="post" enctype="multipart/form-data">
            <div class="form-group">
                <label form="username" class="col-sm-2 control-label">姓名</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="username" name="username" placeholder="请输入姓名">
                </div>

                <label from="password" class="col-sm-2 control-label">密码</label>
                <div class="col-sm-4">
                    <input type="password" class="form-control" id="password" name="password" placeholder="请输入密码">
                </div>
            </div>

            <div class="form-group">
                <label form="age" class="col-sm-2 control-label">年龄</label>
                <div class="col-sm-4">
                    <input type="text" class="form-control" id="age" name="age" placeholder="请输入年龄">
                </div>

                <label from="address" class="col-sm-2 control-label">地址</label>
                <div class="col-sm-4">
                    <input type="address" class="form-control" id="address" name="address" placeholder="请输入地址">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">注册日期</label>
                <div class="col-sm-4">
                    <input type="date" class="form-control" id="regdate" name="regdate" placeholder="请选择日期">
                </div>
                <label from="email" class="col-sm-2 control-label">电子邮箱</label>
                <div class="col-sm-4">
                    <input type="email" class="form-control" id="email" name="email" placeholder="请输入邮箱">
                </div>
            </div>
            <div class="form-group">
                <label class="col-sm-2 control-label">头像</label>
                <div class="col-sm-4">
                    <input type="file" class="form-control" id="img" name="file_img" placeholder="请选择头像">
                </div>
            </div>

            <div class="form-group">
                <div class="col-sm-offset-2 col-sm-10">
                    <button type="submit" class="btn btn-default">保存</button>
                </div>
            </div>
        </form>
    </div>
</body>
</html>
